package com.muqi.app.qlearn.modles;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.json.JSONObject;

import com.google.gson.Gson;

public class OrganizeList implements Serializable {
	/***/
	private static final long serialVersionUID = 1L;
	/* "id": "6",
     "name": "和我学O2O视频互动平台",
     "shortName": "和我学",
     "orgtype": "公司",
     "logo": "",
     "distance": "0.000",
     "usercount": "23"
     "username": "",
        "contacts": "付洋",
        "mobile": "18910704519",
        "hits": "57",
        "province_id": "1",
        "city_id": "1",
        "distance": "0.000",
        "summary": "",
        "provinceName": "北京市",
        "cityName": "北京市",
        "teachers":
     */
	public String id;
	public String name;
	public String shortName;
	public String orgtype;
	public String logo;
	public String usercount;
	public float distance;
	
	public String contacts;
	public String mobile;
	public String hits;
	public String summary;
	public String provinceName;
	public String cityName;
	public String introduce;
	
	public List<TeacherList> teachers;
	public static OrganizeList fromJson(JSONObject json) {
		if(json != null){
            return new Gson().fromJson(json.toString(), OrganizeList.class);
        }
		return null;
	}
}
